﻿using Basic.UserRemoteModel;

namespace Basic.UserModel.DB
{
    [SqlSugar.SugarTable("User_Info")]
    public class DBUserInfo
    {
        [SqlSugar.SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Pwd { get; set; }

        /// <summary>
        /// 绑定的手机号码
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public UserSex Sex { get; set; }

        /// <summary>
        /// Email
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserHead { get; set; }

        /// <summary>
        /// 用户状态
        /// </summary>
        public UserState UserState { get; set; }

        /// <summary>
        /// 最后登陆时间
        /// </summary>
        public DateTime LastLoginDate { get; set; }

        /// <summary>
        /// 注册方式(字典)
        /// </summary>
        public string RegMode { get; set; }

        /// <summary>
        /// 禁用时间
        /// </summary>
        public DateTime? DisableTime { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegTime { get; set; }
    }
}
